﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
namespace PPTControl
{
    public class Logger
    {
        static public void Init(string fileName)
        {
          

        }
        static public void Write(string content)
        {
            try
            {
                Environment.CurrentDirectory = System.AppDomain.CurrentDomain.BaseDirectory;    
              
                FileStream fs = new FileStream("log.txt", FileMode.Append);//@"D:\work\test\PPTControl\WebHost\log.txt"
                StreamWriter sw = new StreamWriter(fs);
                sw.WriteLine(DateTime.Now.ToString() + ":" + content);
                sw.Close();
                fs.Close();
            }
            catch (Exception ex)
            {

            }

        }
    }
}